let abortControllers: any[] = []

export const clearHttpRequestingList = () => {
    if (abortControllers.length > 0) {
        abortControllers.forEach((abortController) => {
            abortController.abort()
        })
        abortControllers = []
    }
}

export const addAbortController = (controller: AbortController) => {
    abortControllers.push(controller)
}
